﻿using Vega.USiteBuilder;

namespace Lu.Blog.Domain.Model.DocumentType
{
    [DocumentType(Name = "HomePage", IconUrl = "house.png", AllowedTemplates = new[] {"Homepage"},
        AllowedChildNodeTypes = new[] {typeof (Category)})]
    public class HomePage : BaseNavigation
    {
        public HomePage(int nodeId)
            : base(nodeId)
        {
        }

        public HomePage()
        {
        }

        [DocumentTypeProperty(UmbracoPropertyType.RichtextEditor, Name = "About", Tab = "Footer information", Description = "This text block is displayed in the footer in the section \"About\"")]
        public string About { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "BlogName", Tab = "Global settings", Description = "The big title displayed on all pages")]
        public string BlogTitle { get; set; }
    }
}